package com.easylinkin.linkappapi.grid.models.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Collection;

/**
 * @author kyj
 * @date 2024/5/23 9:41
 */
@ApiModel(description = "")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GridFileBatchQuery implements Serializable {
    /**
     * 业务ids
     */
    @ApiModelProperty(value = "业务ids", position = 1, required = true)
    @NotEmpty(message = "业务ID不能为空")
    private Collection<? extends Serializable> busIds;

    /**
     * 1:日报 2:周报
     *
     * @see com.easylinkin.linkappapi.grid.enums.EGridFileBusType
     */
    @ApiModelProperty(value = "1:日报 2:周报", position = 2, required = true)
    private Integer busType;

    /**
     * 业务子类型
     *
     * @see com.easylinkin.linkappapi.grid.enums.IGridFileBusSubType
     */
    @ApiModelProperty(value = "业务子类型", position = 3, required = true)
    private Integer busSubType;
}
